package com.cxso.example.sdk.domain;


import java.io.Serializable;

public class Paging implements Serializable {

    private Long size = 10L;

    private Long current = 1L;

    private Long total;

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        if (size > 100) {
            throw new RuntimeException("最大支持一次获取100条数据");
        }
        this.size = size;
    }

    public Long getCurrent() {
        return current;
    }

    public void setCurrent(Long current) {
        this.current = current;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

}
